package com.yjj.demo.jpa.user.vo;

import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 *
 *
 * @author yangjiajia
 * @time 2021/9/24 23:16
 */
@Valid
public class UserAddVo {

    @NotBlank
    private String name;

    @Min(0)
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
